#ifndef CLASSCOLLECTOR_H
#define CLASSCOLLECTOR_H

#include <QDialog>
#include <QProcess>

namespace Ui {
class ClassCollector;
}

class ClassCollector : public QDialog
{
    Q_OBJECT
    
public:
    explicit ClassCollector(QWidget *parent = 0);
    virtual ~ClassCollector();

protected:
    virtual void showEvent(QShowEvent *);
    virtual void closeEvent(QCloseEvent *);
private slots:
    void onReadyRead();
    void onRunFinished(int);
    void onRunError(QProcess::ProcessError);

private:
    Ui::ClassCollector *ui;
    QProcess * _proc;
};

#endif // CLASSCOLLECTOR_H
